home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Mac-Source 1994 July
/
Mac-Source_July_1994.iso
/
Other Langs
/
mpw yacc ƒ src
/
Makefile.Aztec
< prev
next >
Wrap
Makefile
|
1989-11-19
|
3KB
|
147 lines
# This is the Makefile to compile byacc using Aztec C 3.6c
# using MPW Make. If at all possible, use MPW C because the
# performance is better.
#
# Earle R. Horton
# Sunday, November 19, 1989
#
PARSER = byaccpar
DEST = :
.o ƒ .c
cc -A {default}.c -o {default}.asm {CFLAGS}
as -o {default}.o {default}.asm -ZAP
CFLAGS = --N -dAZTECC
HDRS = action.h ∂
defs.h ∂
dep.h ∂
files.h ∂
gram.h ∂
new.h ∂
state.h ∂
symtab.h ∂
text.h ∂
tokens.h
LDFLAGS =
LIBS = -lmpw -lc
LINKER = ln
MAKEFILE = Makefile
OBJS = closure.o ∂
conflicts.o ∂
derives.o ∂
error.o ∂
files.o ∂
genstates.o ∂
gram.o ∂
lalr.o ∂
main.o ∂
mkpar.o ∂
new.o ∂
nullable.o ∂
optim.o ∂
output.o ∂
print.o ∂
reader.o ∂
symtab.o ∂
text.o ∂
warshall.o ∂
yylex.o
PRINT = pr
PROGRAM = byacc
SRCS = closure.c ∂
conflicts.c ∂
derives.c ∂
error.c ∂
files.c ∂
genstates.c ∂
gram.c ∂
lalr.c ∂
main.c ∂
mkpar.c ∂
new.c ∂
nullable.c ∂
optim.c ∂
output.c ∂
print.c ∂
reader.c ∂
symtab.c ∂
text.c ∂
warshall.c ∂
yylex.c
all ƒ {PROGRAM}
{PROGRAM} ƒ {OBJS}
echo -n "Loading {PROGRAM} ... "
delete -i {PROGRAM}
{LINKER} {LDFLAGS} {OBJS} {LIBS} -o {PROGRAM}
catenate {PARSER} >> {PROGRAM}
setfile {PROGRAM} -t MPST -c 'MPS '
echo "done"
clean ƒ
delete -i {OBJS}
depend ƒ; @mkmf -f {MAKEFILE} PROGRAM={PROGRAM} DEST={DEST}
index ƒ
ctags -wx {HDRS} {SRCS}
install ƒ {PROGRAM}
@echo Installing {PROGRAM} in {DEST}
@install -s {PROGRAM} {DEST}
listing ƒ; @{PRINT} Makefile {HDRS} {SRCS} byaccpar | lpr
lint ƒ; @lint {SRCS}
program ƒ {PROGRAM}
tags ƒ {HDRS} {SRCS}
ctags {HDRS} {SRCS}
update ƒ {DEST}{PROGRAM}
{DEST}{PROGRAM} ƒ {SRCS} {LIBS} {HDRS}
@make -f {MAKEFILE} DEST={DEST} install
###
closure.o ƒ {include}stdio.h defs.h dep.h new.h gram.h
conflicts.o ƒ {include}stdio.h defs.h dep.h new.h files.h gram.h state.h
derives.o ƒ {include}stdio.h defs.h new.h gram.h
error.o ƒ {include}stdio.h {include}signal.h ∂
defs.h files.h text.h symtab.h
files.o ƒ {include}stdio.h {include}files.h files.h new.h defs.h
genstates.o ƒ {include}stdio.h defs.h dep.h new.h gram.h state.h
getargs.o ƒ {include}stdio.h defs.h files.h
lalr.o ƒ {include}stdio.h defs.h dep.h gram.h new.h state.h
main.o ƒ {include}stdio.h {include}signal.h ∂
dep.h files.h state.h symtab.h tokens.h ∂
text.h defs.h
mkpar.o ƒ {include}stdio.h action.h defs.h dep.h files.h gram.h new.h ∂
state.h tokens.h text.h symtab.h
new.o ƒ defs.h
nullable.o ƒ {include}stdio.h gram.h new.h defs.h
optim.o ƒ {include}stdio.h defs.h dep.h gram.h new.h state.h
output.o ƒ {include}stdio.h action.h defs.h dep.h new.h files.h gram.h ∂
state.h
print.o ƒ {include}stdio.h action.h defs.h dep.h new.h files.h gram.h ∂
state.h
reader.o ƒ {include}stdio.h defs.h dep.h files.h gram.h new.h symtab.h ∂
text.h tokens.h
symtab.o ƒ {include}stdio.h defs.h new.h symtab.h tokens.h text.h
text.o ƒ {include}stdio.h files.h new.h text.h defs.h
warshall.o ƒ dep.h defs.h
yylex.o ƒ {include}stdio.h defs.h dep.h files.h new.h symtab.h text.h ∂
tokens.h